home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / x11 / ximf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-07  |  1.3 KB  |  36 lines  |  [TEXT/R*ch]

  1. /* Definitions of image families for the X11 interface to Xconq.
  2.    Copyright (C) 1992, 1993, 1994, 1995 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. /* Structure for X11-specific data. */
  10.  
  11. /* Note that this structure has an implicit display and therefore player,
  12.    because pixmaps and fonts always have a particular associated display. */
  13.  
  14. #include <X11/Intrinsic.h>
  15.  
  16. typedef struct a_x11_image {
  17.     Image *generic;        /* pointer to generic image */
  18.     char *monodata;
  19.     char *colrdata;
  20.     char *maskdata;
  21.     Pixmap mono;
  22.     Pixmap colr;
  23.     Pixmap mask;
  24.     XFontStruct *font;
  25.     char monochar;
  26.     char maskchar;
  27.     Pixel *colpix;
  28. } X11Image;
  29.  
  30. extern X11Image *init_x11_image PARAMS ((Image *img));
  31. extern X11Image *get_x11_image PARAMS ((Image *img));
  32. extern void x11_load_imf PARAMS ((Display *dpy, Window rw, ImageFamily *imf));
  33. extern void x11_interp_imf PARAMS ((Display *dpy, Window rw, ImageFamily *imf, int force));
  34. extern void reverse_bit_endianness PARAMS ((char *rawdata, int numbytes));
  35. extern void make_generic_image_data PARAMS ((ImageFamily *imf));
  36.